<style>
    .carousel_content_movie {
        position: fixed;
    }

    .jumbotron {
        padding-top: 0px;
    }
</style>

<!-- 轮播图 -->
<div class="jumbotron hidden-xs hidden-sm" style="height: 800px; padding-bottom: 0px;">
    <div class="banner">
        <div id="myCarousel" class="carousel slide" data-ride="carousel" style="width: 100%;height: 100%;">
            <!-- 轮播（Carousel）指标 -->
            <!-- <ol class="carousel-indicators">
                    <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                    <li data-target="#myCarousel" data-slide-to="1"></li>
                    <li data-target="#myCarousel" data-slide-to="2"></li>
                </ol> -->
            <!-- 轮播（Carousel）项目 -->
            <div class="carousel-inner" style="width: 100%;height: 100%;">
                {tp:carousellist name="carousel" limit="8" key="key"}
                {if $carousel.type==0}
                <div class="item {if intval($key)==1}active{/if} " style="width: 100%;height: 100%;">
                    <div class="carousel_image"
                        style="background-repeat: no-repeat; background-image: url('{//$carousel.picture}'); background-size: cover; background-position: center center; width: 100%; height: 100%; opacity: 1; visibility: inherit; z-index: 20;">
                    <!-- <div class="carousel_image">
                        <img src="{//$carousel.picture}" alt="slide" style="width: 100%;height: 100%;"> -->
                        <div class="container">
                            <div class="carousel_content">
                                <h1>{$carousel.title}</h1>
                                <p class="summary">{$carousel.summary}</p>
                                <p><a class="btn btn-default btn-lg index-btn" href="{$carousel.url}"
                                        role="button">了解更多</a></p>
                            </div>
                        </div>
                    </div>
                </div>
                {else /}
                <div class="item {if intval($key)==1}active{/if}" style="width: 100%;height: 100%;">
                    <div class="carousel_video" style="width: 100%; height: 100%;">
                        <video src="{$carousel.movie}" autoplay loop muted
                            style=" width: 100%;height: 100%;object-fit: contain;"></video>
                        <!-- <div class="container">
                            <div class="carousel_content_movie">
                                <h1>{//$carousel.title}</h1>
                                <p class="summary">{//$carousel.summary}</p>
                                <p><a class="btn btn-default btn-lg index-btn" href="{//$carousel.url}"
                                        role="button">了解更多</a></p>
                            </div>
                        </div> -->
                    </div>
                </div>
                {/if}
                {/tp:carousellist}
            </div>
            <!-- 轮播（Carousel）导航 -->
            <a class="carousel-control left" href="#myCarousel" data-slide="prev"> <span _ngcontent-c3=""
                    aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span></a>
            <a class="carousel-control right" href="#myCarousel" data-slide="next">
                <span _ngcontent-c3="" aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span></a>
            </a>
        </div>
    </div>
</div>
<!-- 轮播图结束 -->
<div class="container-fluid">
    <!-- 产品中心 -->
    <div class="index_product index_conbox">
        <div class="index_title">
            <h1>产品中心</h1><span>PRODUCT</span>
        </div>
        <ul class="index_con">
            <div class="col-xs-12 col-sm-6 col-md-3">
                <a href="/wire.html">
                    <li>
                        <div class="p_img">
                            <img src="/static/picture/index_pro1.jpg">
                            <div class="index_protlbox">
                                <div class="index_protl">
                                    <h3>热喷涂粉芯丝材</h3>
                                    <h5>Thermal Spraying</h5>
                                    <div class="index_promore"></div>
                                </div>
                            </div>
                        </div>
                        <div class="txt1">热喷涂粉芯丝材</div>
                    </li>
                </a>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-3">
                <a href="/surface.html">
                    <li>
                        <div class="p_img">
                            <img src="/static/picture/index_pro2.jpg">
                            <div class="index_protlbox">
                                <div class="index_protl">
                                    <h3>耐磨堆焊丝</h3>
                                    <h5>Welding wire</h5>
                                    <div class="index_promore"></div>
                                </div>
                            </div>
                        </div>
                        <div class="txt1">耐磨堆焊丝</div>
                    </li>
                </a>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-3">
                <a href="/wear_plate.html">
                    <li>
                        <div class="p_img">
                            <img src="/static/picture/index_pro3.jpg">
                            <div class="index_protlbox">
                                <div class="index_protl">
                                    <h3>耐磨板</h3>
                                    <h5>Wear Plate</h5>
                                    <div class="index_promore"></div>
                                </div>
                            </div>
                        </div>
                        <div class="txt1">耐磨板</div>
                    </li>
                </a>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-3">
                <a>
                    <li>
                        <div class="p_img">
                            <img src="/static/picture/index_pro4.jpg">
                            <div class="index_protlbox">
                                <div class="index_protl">
                                    <h3>其它</h3>
                                    <h5>More Parts</h5>
                                    <div class="index_promore"></div>
                                </div>
                            </div>
                        </div>
                        <div class="txt1">其它</div>
                    </li>
                </a>
            </div>
            <div class="clear-fix"></div>
        </ul>
    </div>
    <!-- 产品中心结束 -->
    <div class="clear-fix"></div>
    <!-- 行业应用 -->
    <div class="index_industry index_conbox row" style="background: #F7F9FB;">
        <div class="col-md-12 con-title" style="text-align: center;">
            <h1>行业应用</h1>
            <h2 class="eng-title">INDUSTRY</h1>
        </div>
        <div class="container" style="margin-top: 20px;">
            <div class="swiper-container" style="width: 100%;height: 400px;">
                <div class="swiper-wrapper">
                    <?php
                    $data_sovle = \app\model\Industry::field('id,title,titlepic,summary')->select();
                    ?>
                    {foreach $data_sovle as $value}
                    <div class="swiper-slide col-xs-12 col-sm-6 col-md-3">
                        <div class="photobox-img">
                            <img src="{$value.titlepic}" style="height: 100%;" class="img-responsive"
                                alt="{$value.title}">
                        </div>
                        <div class="phb-content text-left ">
                            <h4>{$value.title}</h4>
                            <p>{$value.summary}</p>
                            <div style="margin-left: 40px; width: 80%;">
                                <a class="btn btn-default index-btn" href="/industry/{$value.id}.html"
                                    role="button">了解更多</a>
                            </div>
                        </div>
                    </div>
                    {/foreach}
                </div>
                <!-- Add Pagination -->
                <!-- <div class="swiper-pagination"></div> -->
                <div class="swiper-button-prev"></div><!--左箭头。如果放置在swiper外面，需要自定义样式。-->
                <div class="swiper-button-next"></div><!--右箭头。如果放置在swiper外面，需要自定义样式。-->
            </div>
            <script>
                var swiper = new Swiper('.swiper-container', {
                    slidesPerView: 'auto',
                    spaceBetween: 30,
                    freeMode: true,
                    navigation: {
                        nextEl: '.swiper-button-next',
                        prevEl: '.swiper-button-prev',
                    },
                });
            </script>
            <div class="clear-fix"></div>
        </div>
    </div>
    <!-- 行业应用结束 -->

    <div class="clear-fix"></div>

    <!-- 企业介绍 -->
    <div class="index_video index_conbox">
        <div class="index_title">
            <h1 class="active">关于我们</h1><span>ABOUT US</span>
        </div>
        <div class="video_box index_con">
            <div class="v_btn">
                <p></p>
            </div>
            <div class="ved_box"
                style="display:none; position:fixed; width:100%; height:100%; background:#111; top:0; left:0">
                <video class="vo" loop="" poster="/video/赛亿宣传视频720p-封面.jpg"
                    style="position:relative;list-style:none;padding:0px; margin:0px; width:84%; left:8%;top:6%; "
                    controls="" id="video2">
                    <source src="/video/赛亿宣传视频720p.mp4" type="video/mp4">
                </video>
                <div class="close_v"><img src="static/images/close.png" style="position:absolute;right:7%;top:4%">
                </div>
            </div>
        </div>
        <script>
            $(document).ready(function () {
                var myVideo = document.getElementById("video2");
                $(".v_btn").click(function (e) {
                    e ? e.stopPropagation() : event.cancelBubble = true;//阻止冒泡
                    $(".ved_box").css({ "display": "block", "z-index": 9989 })
                    myVideo.play();
                })
                $(".ved_box,.close_v").click(function () {
                    $(".ved_box ").css({ "display": "none" })
                    myVideo.pause();
                })
                $(".ved_box .vo,.close_v").click(function (e) {
                    e ? e.stopPropagation() : event.cancelBubble = true;
                });
            })
        </script>
        <div class="index_company">
            <div class="col-sm-12 col-md-6 index_consub about">
                <img src="/static/picture/n1.jpg">
                <div class="index_about_intro">
                    <div class="index_abouticon"><img src="/static/images/about_icon1.png"></div>
                    <h2>关于赛亿</h2>
                    <h5></h5>
                    <p>致力于成为中国高性能功能材料技术领导者</p>
                    <a href="/about.html">
                        <div class="index_aboutmore"><span>More</span></div>
                    </a>
                </div>
            </div>
            <div class="col-sm-12 col-md-6 index_consub s_con">
                <a href="/contactus.html">
                    <img src="/static/picture/main_ww_img.jpg">
                    <div class="index_scon">
                        <h2>联系方式<span>CONTACT US</span></h2>
                        <div class="index_sconmore"></div>
                    </div>
                </a>
            </div>
        </div>

        <!-- <dl class="index_company index_con">
                <dd class="about index_consub">
                    <img src="/static/picture/n1.jpg">
                    <div class="index_about_intro">
                        <div class="index_abouticon"><img src="/static/images/about_icon1.png"></div>
                        <h2>关于赛亿</h2>
                        <h5></h5>
                        <p>致力于成为中国高性能功能材料技术领导者</p>
                        <a href="/about.html">
                            <div class="index_aboutmore"><span>More</span></div>
                        </a>
                    </div>
                </dd>
                <dd class="s_con index_consub">
                    <a href="/contactus.html">
                        <img src="/static/picture/main_ww_img.jpg">
                        <div class="index_scon">
                            <h2>联系方式<span>CONTACT US</span></h2>
                            <div class="index_sconmore"></div>
                        </div>
                    </a>
                </dd>
                <div class="clear"></div>
            </dl> -->
    </div>
    <!-- 企业介绍结束 -->
    <div class="clear-fix"></div>
    <!-- news -->
    <div class="news-box row">
        <div class="col-md-12 con-title" style="text-align: center;">
            <h1>资讯中心</h1>
            <h2 class="eng-title">LASTEST NEWS</h1>
        </div>
        <div class="container" style="margin-top: 20px;">
            {php}
            $data_news = \app\model\Article::where('status', 1)->where('cid', 'IN', '14,15')->field('id, cid, title,
            titlepic, summary,create_time')->order('sort desc, id desc')->limit(5)->select();
            $news_first=$data_news->shift();
            {/php}
            <div class="col-md-5">
                <div class="news-con">
                    <div class="single-image">
                        <a href="/news/{$news_first.id}">
                            <img class="img-responsive" src="{$news_first.titlepic}" title="{$news_first.titlepic}">
                        </a>
                    </div>
                    <div class="single-con">
                        <h4 style="font-size: 18px;text-align: left" class="vc_custom_heading vc_custom_1609746420610">
                            <a href="/news/{$news_first.id}" title="{$news_first.title}"
                                data-wpel-link="internal">{$news_first.title}</a>
                        </h4>
                        <p style="font-size: 14px;text-align: left" class="vc_custom_heading">
                            <a href="/news/{$news_first.id}" title="{$news_first.title}"
                                data-wpel-link="internal">{$news_first.create_time|date="Y-m-d"}</a>
                        </p>
                    </div>
                    <div class="vc_empty_space" style="height: 15px"><span class="vc_empty_space_inner"></span>
                    </div>
                </div>
            </div>
            <div class="col-md-1"></div>
            <div class="col-md-5">
                {foreach $data_news as $val}
                <div class="col-md-6">
                    <div class="news-con">
                        <div class="single-image">
                            <a href="/news/{$val.id}">
                                <img class="img-responsive" src="{$val.titlepic}" title="{$val.titlepic}">
                            </a>
                        </div>
                        <div class="single-con">
                            <h4 style="font-size: 16px;text-align: left"
                                class="vc_custom_heading vc_custom_{$val.create_time}">
                                <a href="/news/{$val.id}" title="{$val.title}"
                                    data-wpel-link="internal">{$val.title}</a>
                            </h4>
                            <p style="text-align: left" class="vc_custom_heading">
                                <a href="/news/{$val.id}" title="{$val.title}"
                                    data-wpel-link="internal">{$val.create_time|date="Y-m-d"}</a>
                            </p>
                        </div>
                    </div>
                </div>
                {/foreach}
            </div>
        </div>
        <div class="clear"></div>
    </div>

    <!-- news end -->
    <div class="clear-fix"></div>
</div>